package com.example.admin.mapper;


import com.example.admin.entity.ElderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ElderMapper {


    public List<ElderInfo> getElderInfoPage();

    int deleteById(@Param("id") Integer id);

    int addElderInfo(@Param("elderInfo") ElderInfo elderInfo);

    int editElderInfo(@Param("elderInfo") ElderInfo elderInfo);

    List<ElderInfo> selectElderInfoByName(@Param("name") String name);
}
